package org.softmed.rest.server.core.http;

import java.util.ArrayList;
import java.util.List;

import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.name.Named;

public class SpecificMethodProcessorProvider implements
		Provider<List<SpecificHttpMethodProcessor>> {
	private List<SpecificHttpMethodProcessor> specificMethodProcessors = new ArrayList<SpecificHttpMethodProcessor>();

	@Inject
	public SpecificMethodProcessorProvider(@Named("GetProcessor")
	SpecificHttpMethodProcessor someObject1, @Named("PostProcessor")
	SpecificHttpMethodProcessor someObject2,@Named("PutProcessor")
	SpecificHttpMethodProcessor someObject3,@Named("DeleteProcessor")
	SpecificHttpMethodProcessor someObject4) {
		specificMethodProcessors.add(someObject1);
		specificMethodProcessors.add(someObject2);
		specificMethodProcessors.add(someObject3);
		specificMethodProcessors.add(someObject4);
	}

	public List<SpecificHttpMethodProcessor> get() {
		return specificMethodProcessors;
	}
}
